package com.fastjpa.vo;
import com.efeichong.mapping.Mapping;
import com.efeichong.mapping.UseMode;
import lombok.Getter;
import lombok.Setter;
import java.lang.Long;
import java.lang.String;
import java.lang.Integer;
import java.util.List;

/**
* @author admin
* @date 2022/07/17
* @description 学生
*/
@Setter
@Getter
public class StudentVo {

    /**id**/
    private Long id;

    /**学生名**/
    private String name;

    /**年龄**/
    private Integer age;

    @Mapping(poProperty = "clazz.id", useMode = UseMode.QUERY)
    private Long clazzId;

    @Mapping(poProperty = "clazz.name", useMode = UseMode.TO_VO)
    private String clazzName;

    @Mapping(poProperty = "clazz.teachers.name", useMode = UseMode.TO_VO)
    private List<String> teacherNames;
}
